// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入饿了么的UI组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

/**
 * 引入全局覆盖的样式
 */
import './style/main.css';


// 引用API文件
import api from './api/index.js'
// 将API方法绑定到全局
Vue.prototype.$api = api


Vue.config.productionTip = false
Vue.use(ElementUI);

import Icon from 'vue-svg-icon/Icon.vue'
Vue.component('icon', Icon);
// Icon.inject('moreclass');

/**
 * 引入vue-video-player视频播放插件
 */
// import VideoPlayer from 'vue-video-player'
// require('video.js/dist/video-js.css')
// require('vue-video-player/src/custom-theme.css')
// Vue.use(VideoPlayer)

//引入store
// 引用API文件
import store from './store'


/* eslint-disable no-new */
new Vue({
  el: '#app',
    store,
  router,
  components: { App },
  template: '<App/>'
})
